
#ifndef UI_PULL_TOP_PAGE_H
#define UI_PULL_TOP_PAGE_H

#include <stdint.h>
#include <stdbool.h>

#ifdef __cpluscplus
extern "C"
{
#endif

typedef enum PULL_DIR
{
     PULL_DIR_BOTTOM = 5,
     PULL_DIR_TOP,
     PULL_DIR_RIGHT,
     PULL_DIR_LEFT,

}PULL_DIR_e;

/**
 * @brief get page contain, provide to user implement ui
 * @param pull_dir 
 * @return void* lv_obj_t
 */
void *pull_page_get(PULL_DIR_e pull_dir);

/**
 * @brief pull page action, implement the page pull effect
 * @param pull_dir 
 * @param is_release  
 * @param point_x 
 * @param point_y 
 */
void  pull_page_action(PULL_DIR_e pull_dir, bool is_release, int point_x, int point_y);

#ifdef __cpluscplus
}
#endif

#endif